<template>
  <div class="ke-logo" @click="handleToHome">
    <div class="ke-name">
      <img src="@/assets/images/login-banner.jpg" class="logo" />
      <span class="name">在线课堂</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ke-logo',
  methods: {
    handleToHome() {
      this.$router.push('/')
    }
  }
}
</script>

<style lang="stylus" scoped>
.ke-logo {
  overflow: hidden;
  cursor: pointer;
  width: 200px;

  .ke-name {
    position: relative;
    width: 192px;
    height: 80px;
    line-height: 80px;
    display: inline-block;
    overflow: hidden;

    .logo {
      position: absolute;
      top: 50%;
      margin-top: -30px;
      height: 60px;
      width: 60px;
      border-radius: 50%;
    }

    .name {
      position: absolute;
      right: 10px;
      font-size: 30px;
      font-family: '楷体';
    }
  }
}
</style>
